package com.kaifamiao.www.demo.do0907;

import java.util.Scanner;

public class Bank {
    static Scanner sc = new Scanner(System.in);

    public Bank() {

    }

    private void start(){
        System.out.println("欢迎光临XXX银行");
        System.out.println("请选择你要办理的业务");
        System.out.println("1.开户");
        System.out.println("2.存钱");
        System.out.println("3.取钱");
        System.out.println("4.查询余额");
        System.out.println("5.查询账户信息");
        System.out.println("6,转账");
        System.out.println("0.退出！");
        int selector = sc.nextInt();
        selectMenu(selector);
    }
    /**
     * 根据用户输入选择要执行的功能
     */
    private void selectMenu(int selector){
        switch (selector){
            case 1:
                createAccount();//开户
                break;
            case 2:
                savaMoney();//存钱
                break;
            case 3:
                takemoney();//取钱
                break;
            case 4:
                getmoney();//查询余额
                break;
            case 5:
                showAccount();//查询账户信息
                break;
            case 6:
                transfer();//转账
                break;
            case 0:
                exit();//退出
                break;
        }
    }
    private void exit(){
        System.exit(0);
    }
    private  void createAccount(){
        System.out.println("请输入开户人姓名");
        String ename = sc.next();
        System.out.println("请输入密码");
        String password = sc.next();

    }
    private  void savaMoney(){}

    private  void getmoney(){}

    private  void takemoney(){}

    private  void showAccount(){}

    private  void transfer(){}

}
